package com.zwu.service.impl;

import com.zwu.Mapper.UserMapper;
import com.zwu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Zyl
 * @Param:
 * @return:
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public Integer login(String name, String password) {
        return userMapper.login(name,password);
    }

    @Override
    public Integer findUser(String name, String password) {
        return userMapper.findUser(name,password);
    }

    @Override
    public void updateUser(String password) {
        userMapper.updateUser(password);
    }

    @Override
    public String findPassword(String name) {

        return userMapper.findPassword(name);
    }
}
